import React from 'react'
// import { Editor } from 'components'
// import { convertToRaw } from 'draft-js'
import { Button, Row, Col, Card, Typography, Icon } from 'antd'
// import draftToHtml from 'draftjs-to-html'
// import draftToMarkdown from 'draftjs-to-markdown'
import { withI18n, Trans } from '@lingui/react'
import { connect } from 'dva'
import { router } from 'utils'
// import { Map, Marker, Circle, NavigationControl, InfoWindow } from 'react-bmap'
import { Exception } from 'ant-design-pro'

// const { Paragraph, Title } = Typography

@withI18n()
@connect(({ dashconfig, loading }) => ({ dashconfig, loading }))
class Dashconfig extends React.Component {
  render() {
    const actions = (
      <div>
        <Button
          type="primary"
          onClick={e => {
            router.push({
              pathname: `/dashboard`,
            })
          }}
        >
          <Trans>Back To Home</Trans>
        </Button>
      </div>
    )
    return (
      <Exception
        type="403"
        desc={<Trans>Sorry, you have no access to this page</Trans>}
        actions={actions}
      />
    )
  }
}

export default Dashconfig
